// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import axios from "axios";
import converData from "./utils/converData";

import echarts from "echarts";
import "vant/lib/index.css";
import "../static/icont/iconfont.css";
// let VConsole = require('../node_modules/vconsole/dist/vconsole.min');
// let vConsole = new VConsole();
// Vue.use(vConsole);
import $ from "jquery";
Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false;
import {
  NoticeBar,
  Rate,
  Popup,
  Field,
  Radio,
  RadioGroup,
  Picker,
  ImagePreview
} from "vant";
Vue.use(NoticeBar);
Vue.use(Field);
Vue.use(Picker);
Vue.use(Rate);
Vue.use(Popup);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(ImagePreview);

Vue.use(ElementUI);
Vue.prototype.axios = axios;
Vue.prototype.$converData = converData;

Vue.prototype.apis = "https://tech.localbird.cn";
Vue.prototype.docheight = document.documentElement.clientHeight;
Vue.prototype.docwidth = document.documentElement.clientWidth;
Vue.prototype.ossSrc = "?x-oss-process=image/format,jpg/quality,q_50";
window.addEventListener("resize", () => {
  Vue.prototype.docheight = document.documentElement.clientHeight;
});
new Vue({
  el: "#app",
  router,
  components: { App },
  template: "<App/>"
});
